#ifndef SINGLE_APPLICATION_H
#define SINGLE_APPLICATION_H

#include <QApplication>
#include <QSharedMemory>


class SingleApplication : public QApplication {
		Q_OBJECT

	public:
		SingleApplication(int &argc, char *argv[], const QString uniqueKey);
		~SingleApplication();

		bool isRunning();

	private:
		bool _isRunning;
		QString _uniqueKey;
#ifndef QT_NO_SHAREDMEMORY
		// OS/2 issue here.
		QSharedMemory sharedMemory;
#endif
};


#endif // SINGLE_APPLICATION_H
